package com.rs.game.player.dialogues.impl;

import com.rs.game.player.dialogues.Dialogue;
import com.rs.utils.ShopsHandler;

public class Voting extends Dialogue {

	@Override
	public void start() {
		sendOptionsDialogue("Voting rewards", "Weapons and Armour", "Cosmetics", "Never mind");
		
	}

	@Override
	public void run(int interfaceId, int componentId) {
		if (stage == -1) {
			if (componentId == OPTION_1) {
				player.getPackets().sendGameMessage("You currently have " + "<col=FF0000>" +player.getVotes()+ "</col>" + " voting points!");
				ShopsHandler.openShop(player, 10);
				end ();
			}
			if (componentId == OPTION_2) {
				player.getPackets().sendGameMessage("You currently have " + "<col=FF0000>" +player.getVotes()+ "</col>" + " voting points!");
				ShopsHandler.openShop(player, 39);
				end ();
			} else if (componentId == OPTION_3) {
				end();
			}
		}
		
	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}

}
